import request from '@/utils/request'

// export const BASE_DETECT_URL = 'http://region-3.autodl.com:54245'
export const BASE_DETECT_URL = '/api'

export const phoneAlarm = () => {
  return request({
    url: '/phone_alarm_realtime',
    method: 'get'
  })
}
export const fireAlarm = () => {
  return request({
    url: '/fire_alarm_realtime',
    method: 'get'
  })
}
export const smokeAlarm = () => {
  return request({
    url: '/smoking_alarm_realtime',
    method: 'get'
  })
}
export const reflectAlarm = () => {
  return request({
    url: '/reflect_alarm_realtime',
    method: 'get'
  })
}
export const hatAlarm = () => {
  return request({
    url: '/hat_alarm_realtime',
    method: 'get'
  })
}
export const speedAlarm = () => {
  return request({
    url: '/speed_alarm_realtime',
    method: 'get'
  })
}
export const sundryAlarm = () => {
  return request({
    url: '/sundry_alarm_realtime',
    method: 'get'
  })
}
export const sleepAlarm = () => {
  return request({
    url: '/sleep_alarm_realtime',
    method: 'get'
  })
}
